<%-- 
    Document   : profile
    Created on : Dec 18, 2012, 9:43:24 AM
    Author     : gcastillo, nbenavidez
--%>

<%@ page import="com.almori.hr.timetracker.*" import="java.io.File"%>
 <%    
              Employee me = (Employee)session.getAttribute("Employee");                                                       
 %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title> <%= me.getfName() + " " + me.getlName()  %></title>
        <link rel="Shortcut icon" href="img/logo.png" />
        <link rel="stylesheet" type="text/css" href="css/style_profile.css" />
          <!--[if IE 8]>
           <link rel="stylesheet" type="text/css" href="css/styleIE.css" />
        <![endif]-->

    </head>
    <body>
        <br />
          <form id="signup">
           <div class="inputs">
               <% 
                    
                    File f = new File(getServletContext().getRealPath("") + "\\img\\pics\\" + me.getPic());
                    String p = (f.exists()) ? me.getPic() : "auser.jpg";
                    
               %>
              
               <img src="img/pics/<%= p %>" alt="pic" height="110" width="100"></img>
               <br />
               <br />
               <table border='0'>
                  <tr>
                     <td style="text-align: left; overflow: hidden; width: 150px;position:static;">Nombre Completo </td>
                     <td style="text-align: left; overflow: hidden; width: 250px;"><strong><%=  me.getfName() + " " + me.getlName() %> </strong></td>
                  </tr>
               
                  <tr>
                     <td style="text-align: left; overflow: hidden; width: 150px;">Estatus </td>
                     <td style="text-align: left; overflow: hidden; width: 250px;"><strong><%=  me.getStatus() %></strong></td>
                  </tr>
               
                  <tr>
                     <td style="text-align: left; overflow: hidden; width: 150px;">No. de Cedula</td>
                     <td style="text-align: left; overflow: hidden; width: 250px;"><strong><%=  me.getCed() %></strong></td>
                  </tr>
               
                  <tr>
                     <td style="text-align: left; overflow: hidden; width: 150px;">Departamento </td>
                     <td style="text-align: left; overflow: hidden; width: 250px;"><strong><%=  me.getDeptDesc() %></strong></td>
                  </tr>
              
                  <tr>
                     <td style="text-align: left; overflow: hidden; width: 150px;">Rol </td>
                     <td style="text-align: left; overflow: hidden; width: 250px;"><strong><%=  me.getRoleDescription() %></strong></td>
                  </tr>
               </table>
               <br />
              
          </div>
          </form>
         
    </body>
</html>
